<template>
  <div>
    <ul>
      <li v-for="item in props.names">{{ item }}</li>
    </ul>
  </div>
</template>

<script generic="T" setup lang=ts>
import { ref,PropType } from 'vue'
/* const props = defineProps({
  names: {
    type: Array as PropType<string[]>,
    required: true
  }
}) */
/* const props = defineProps<{
  names:string[]
}>() */
const props = defineProps<{
  names: T[]
}>()
props.names
</script>

<style scoped></style>